package io.coderyeah.ymcc.service;

import io.coderyeah.ymcc.domain.Course;
import com.baomidou.mybatisplus.service.IService;
import io.coderyeah.ymcc.dto.CourseParamDTO;
import io.coderyeah.ymcc.result.JSONResult;
import io.coderyeah.ymcc.vo.CourseDetailVo;
import io.coderyeah.ymcc.vo.CourseInfoVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author coderyeah
 * @since 2022-10-23
 */
public interface ICourseService extends IService<Course> {

    JSONResult saveCourse(CourseParamDTO courseDTO);

    void onLineCourse(Long id);

    void offLineCourse(Long id);

    CourseDetailVo courseDetailVo(Long id);

    JSONResult getCourseStateById(Long id);

    JSONResult getCourseInfo(List<Long> ids);

    CourseInfoVo courseOrderKillInfo(String orderNo);

}
